Перейти к основному содержимому

Update Reseller Score Limit by Symbol API

POST /updateResellerScoreLimitBySymbol

Description

This API endpoint allows an admin to update the score limit for a reseller by providing a specific symbol and its corresponding maximum limit. The score limit determines the maximum score a reseller can achieve or utilize, associated with a particular symbol.

Request Body

The request utilizes GraphQL to perform the updateResellerScoreLimitBySymbol mutation.

Mutation:

mutation updateResellerScoreLimitBySymbol ($resellerScoreLimitEdit: ResellerScoreLimitEdit) {
updateResellerScoreLimitBySymbol (resellerScoreLimitEdit: $resellerScoreLimitEdit) {
scoreDefinition
symbol
maximumLimit
}
}

Variables:

{
"resellerScoreLimitEdit": {
"symbol": "<Symbol>",
"maxLimit": 0
}
}
  • resellerScoreLimitEdit (ResellerScoreLimitEdit Object): An object containing the updated score limit details for the reseller.
    • symbol (String): The symbol associated with the score limit (e.g., a currency or point system).
    • maxLimit (Int): The maximum limit or cap for the score associated with the specified symbol.

Response:

  • Success (200 OK):

    • If the update is successful, the response will return the updated score limit details, confirming the changes.
    {
    "data": {
    "updateResellerScoreLimitBySymbol": {
    "scoreDefinition": "<Score_Definition>",
    "symbol": "<Symbol>",
    "maximumLimit": "<Max_Limit>"
    }
    }
    }
  • Error (4XX/5XX):

    • Appropriate error messages and status codes will be returned in cases of invalid data, missing required fields, or server errors.

Note:

Ensure that the resellerScoreLimitEdit object contains valid and correctly formatted data according to the platform's specifications. This API should be used by admins with the necessary permissions to manage and update reseller score limits associated with specific symbols.